package com.itqf.service.impl;

import com.itqf.mapper.DtsPermissionMapper;
import com.itqf.service.DtsPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collection;

/**
 * projectName: store_parent
 *
 * @author: 赵伟风
 * time: 2021/6/8 10:58
 * description:
 */
@Service
public class DtsPermissionServiceImpl implements DtsPermissionService {

    @Autowired
    private DtsPermissionMapper mapper;

    /**
     * 根据角色查询用户的权限!
     *
     * @param ids
     * @return
     */
    @Override
    public Collection<String> findPermissionNames(Integer[] ids) {

        Collection<String> permissions =  mapper.queryPermissions(ids);

        return permissions;
    }
}
